<#include "macro.ftl"/>
<#macro head title="" styleMacro="" scriptMacro="">
  <head>
    <meta charset="utf-8">
    <title>${title!'博客管理后台'}</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="icon" href="${request.contextPath}/images/favicon.ico">
      <@css src="/lib/layui-v2.6.3/css/layui.css"></@css>
      <@css src="/css/themes/default.css"></@css>
      <@css src="/css/layuimini.css"></@css>
      <@css src="/lib/fontawesome-free-5.15.4/css/all.css"></@css>
      <@css src="/css/public.css"></@css>
      <@css src="/css/app-common.css"></@css>
    <style id="layuimini-bg-color">
    </style>
      <#if styleMacro?is_macro>
          <@styleMacro></@styleMacro>
      </#if>
  </head>
</#macro>
<#macro page title="" styleMacro="" scriptMacro="">
  <!DOCTYPE html>
  <html>
  <@head title=title styleMacro=styleMacro></@head>
  <#nested >
  <script src="${request.contextPath}/lib/layui-v2.6.3/layui.js" charset="utf-8"></script>
  <script src="${request.contextPath}/js/lay-config.js" charset="utf-8"></script>
  <script src="${request.contextPath}/js/app-global.js" charset="utf-8"></script>
  <#if scriptMacro?is_macro>
      <@scriptMacro></@scriptMacro>
  </#if>
  <script>
    layui.use(['layer', 'miniTab'], function () {
      let layer = layui.layer,
        $ = layui.jquery
      miniTab = layui.miniTab;
      miniTab.listen();

      $('[lay-tips]').on('hover', function () {
        let p = $(this).attr('lay-tips-position');
        let msg = $(this).attr('lay-tips');
        let time = $(this).attr('lay-time');
        if (!p) {
          p = "1";
        }
        if (!time) {
          time = 3000;
        }
        layer.tips(msg, $(this), {tips: p, time: time});
      })
    })
  </script>
  </html>
</#macro>
